 
<?php 
    $url=base_url();
    $category_first = <<<EOF
       <div>
        <!--  start  ul. -->
                        <div style="width=670px;border:#bcc 1px solid;">
                        <table style="float:left" >
                        <tr>                                                
EOF;
?>
<!--Begin List one -->
   
    
 <?php
 $count=0;
 foreach ($category_3 as $categoryItem){  
    $count++;
    
    $category_first_Item = <<<EOF
                            <td width="125px">    
                                         <div style="border:#bcc 1px solid">
                                          <table width="120px" height="120px" >
                                             <tr>
                                             <td> 
                                                <img alt="next" src="{$url}img/avata/{$categoryItem->avatar}" class=" " width="60px" height="60px"> 
                                             </td>
                                             <td height="62px">
                                            <p class="content-top ">{$categoryItem->name}</p>
                                            <p class="content-top ">{$categoryItem->company}</p>
                                            </td>
                                            </tr> 
                                            <tr>
                                              <td colspan="2"><p class="content-bottom">Url: <a href="#">www.axure.com</a></p></td>
                                            </tr>
                                            <tr>
                                              <td colspan="2"><p class="content-bottom">LinkedIn</p></td>
                                            </tr>
                                            <tr>
                                              <td colspan="2">
                                              <table style="background:#07274B;margin:0px;padding:0px;" width="100px">
                                                <tbody><tr>
                                                    <td><img alt="next" src="{$url}images/stars.png" width="13px" height="13px"></td>
                                                    <td><img alt="next" src="{$url}images/stars.png" width="13px" height="13px"></td>
                                                    <td><img alt="next" src="{$url}images/stars.png" width="13px" height="13px"></td>
                                                    <td><img alt="next" src="{$url}images/stars.png" width="13px" height="13px"></td>
                                                    <td><img alt="next" src="{$url}images/stars_black.png" width="13px" height="13px"></td>
                                                </tr>
                                                </tbody>
                                                </table>
                                              </td>
                                            </tr>
                                           </table>
                                           </div>
                                    </td>                                    
EOF;
                                              
    $category_first = $category_first.$category_first_Item;
}
// end foreach
if($count<5){
    for($i=0;$i<(5-$count);$i++){
    $extra_list=<<<EOF
             <td>
             </td>
EOF;
 }  // end if
}
 ?>
                      
 
<?php 


$category_first_bottom=<<<EOF
     </tr>
     </table>     
     </div>
                <div style="clear: both;"></div>
            </div>
        <!-- End List one-->
EOF;

$category_first = $category_first.$category_first_bottom;
?>